from django.conf.urls import url
from web01 import views

urlpatterns = [
    url(r'^index/', views.index),
    url(r'^login/', views.login, name='login'),
    url(r'^article/(\d+)$', views.article, name='article'),
    url(r'^article_list/(?P<bc_num>\d+)/(?P<sc_num>\d+)/$', views.article_list, name='article_list'),
    url(r'^article_list/(?P<bc_num>\d+)/$', views.article_list, name='article_list'),
    url(r'^search/', views.search, name='search'),
    url(r'^comment/', views.comment, name='comment'),



    url(r'^category_list/', views.category_list, name='category_list'),
    url(r'^bigcategory_add/', views.bigcategory_add, name='bigcategory_add'),
    url(r'^subcategory_add/', views.subcategory_add, name='subcategory_add'),
    url(r'^category_del/', views.category_del, name='category_del'),
    url(r'^category_edit/', views.category_edit, name='category_edit'),


    url(r'^pic_change/', views.pic_change, name='pic_change'),

    url(r'^article_manage/', views.article_manage, name='article_manage'),
    url(r'^article_add/', views.article_add, name='article_add'),
    url(r'^article_del/(\d+)', views.article_del, name='article_del'),
    url(r'^article_edit/(\d+)', views.article_edit, name='article_edit'),

]
